<?php

/*
 * 初始化类，主要设置include_path。让类自动加载
 * and open the template in the editor.
 */
class Initialize
{
    static public function init()
    {
        global $_G;
        header("Content-Type: text/html; charset=".$_G['charset']);
        $auto_class_path=$_G["auto_load_class_path"];
        foreach ($auto_class_path as $v){
             set_include_path(get_include_path().PATH_SEPARATOR.ROOT.$v);
        }
        date_default_timezone_set($_G['time_zone']);
    }
    
}
?>
